package com.fzz.learnitservice.service;

import com.commonfzz.pojo.po.R;
import com.fzz.learnitservice.pojo.dto.LoginDTO;
import com.fzz.learnitservice.pojo.dto.RegisterDTO;
import com.fzz.learnitservice.pojo.po.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fzz.learnitservice.pojo.vo.LoginVo;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author 小菜钊
 * @since 2025-10-23
 */
public interface IUserService extends IService<User> {

    R register(RegisterDTO registerDTO);

    R<LoginVo> login(LoginDTO loginDTO);

    R logout(Long userId);

    R setEnLevel(int enLevel, long userId);
}
